home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / applications / misc / upsey.lha / UPSey / src / makefile < prev    next >
Encoding:
Makefile  |  1994-06-27  |  2.7 KB  |  162 lines

  1. #
  2. #
  3. # Makefile for 
  4. #
  5. # $Id: makefile,v 1.4 1994/05/07 15:57:31 WBOW Exp $
  6. # IMPORTANT:  To create dependencies  -->  make depend
  7. #
  8. # Makefile for use with Aztec v5 and beyond.  Uses 32-bit ints
  9. #
  10. # $Log: makefile,v $
  11. # Revision 1.4  1994/05/07  15:57:31  WBOW
  12. # Demo for colin
  13. #
  14. # Revision 1.3  1994/05/07  00:05:43  WBOW
  15. # Minor bug fix: added line - .PHONY: .depend
  16. #
  17. # Revision 1.2  1994/05/02  16:29:16  WBOW
  18. # Using precompiled headers now.
  19. #
  20. # Revision 1.1  1994/05/02  08:29:26  WBOW
  21. # Initial revision
  22. #
  23. #
  24.  
  25. .PHONY: .depend flowchart
  26.  
  27. .SUFFIXES:    # Tell make to forget the suffixes it alreay knows
  28.  
  29. .SUFFIXES: .c .o .h
  30.  
  31. # Uncomment out this line if you want make to run quiet
  32. #.SILENT:
  33.  
  34.  
  35. GTXNAME = ups.gui
  36.  
  37. CC = aztec:bin/c1
  38. AS = aztec:bin/as
  39. LD = aztec:bin/ln
  40.  
  41. #
  42. # Set things up so we get .o files built correctly....
  43. # (must be configured for each user)
  44. #
  45.  
  46. #
  47. # the usual stuff ..............
  48. #
  49.  
  50. AOUT= UPSey
  51.  
  52. PRE =
  53.  
  54. CCMODE =
  55. CCOPTS = -wqs
  56. CFLAGS = -bs
  57. INCLUDES =
  58. AFLAGS =
  59. LFLAGS = -g
  60. LIBS = -l reqtools -lc
  61.  
  62. #
  63. # Names of the directories where we find sources....
  64. #
  65. AMIGA =
  66.  
  67. #
  68. # and objects....
  69. #
  70. LIBOBJ = +l amiga.lib
  71.  
  72.  
  73. #
  74. # List of source files 
  75. #
  76. SRC_GUI = $(subst .gui,.c,$(GTXNAME)) $(subst .gui,_temp.c,$(GTXNAME)) 
  77.  
  78. SRC1 =  database.c handlegadgets.c handleprojectmenu.c
  79.  
  80. SRC2 =
  81.  
  82. SRCn =
  83.  
  84. SRC  = $(SRC_GUI) $(SRC1) $(SRC2) main.c
  85.  
  86. #
  87. # List of object files
  88. #
  89. OBJ_GUI = $(subst .gui,.o,$(GTXNAME)) $(subst .gui,_temp.o,$(GTXNAME))
  90.  
  91. OBJ1 = database.o handlegadgets.o handleprojectmenu.o
  92.  
  93. OBJ2 =
  94.  
  95. OBJn =
  96.  
  97. OBJ = $(OBJ_GUI) $(OBJ1) $(OBJ2) main.o
  98.  
  99.  
  100. #
  101. # THE PROGRAM (AOUT)
  102. #
  103.  
  104. $(AOUT) : init $(SRC_GUI) $(OBJ)
  105.     $(LD) $(LFLAGS) -o $(AOUT) $(OBJ) $(LIBS) $(LIBOBJ)
  106.  
  107. # Initilize compiler options
  108. #
  109. # Do environment variable initilizations here. 
  110. #
  111. init:
  112.     mset ccopts=$(CCOPTS)
  113.  
  114. #
  115. #
  116. #
  117.  
  118. $(subst .gui,.h,$(GTXNAME)) : $(GTXNAME)
  119.     copy $@ $*.h^
  120.     sed >$@ -f etc/FixGTX_h.sed $*.h^
  121.  
  122. $(subst .gui,.c,$(GTXNAME)): $(GTXNAME)
  123.     copy $@ $*.c^
  124.     sed >$@ -f etc/FixGTX_c.sed $*.c^
  125.  
  126. $(subst .gui,_temp.c,$(GTXNAME)): $(GTXNAME)
  127.     copy $@ $*.c^
  128.     sed >$@ -f etc/FixGTX_temp_c.sed $*.c^
  129.  
  130. #
  131. # Generate prototypes
  132. #
  133. functions.h: $(SRC)
  134.     mkproto >functions.h $(SRC)
  135.  
  136. #
  137. #
  138. clean:
  139.     -delete #?.o #?.[c|h]^
  140.  
  141. clobber: clean
  142.     -delete a.out
  143.  
  144.  
  145. #
  146. # Build the dependency list for the .h files used by all sources. We do
  147. # this in multiple passes so to avoid problems with the long command line
  148. # generate when you slap all the sources together.
  149. # Note that there are faster, but more environment-dependent, ways to do
  150. # turn the output of the makemake's into an lmkfile. We avoid those
  151. # on purpose.
  152. #
  153.  
  154. .depend:
  155.     makemake >.depend -M $(INCLUDES) $(SRC)
  156.  
  157. # This is a bit of a hack for the benifit of GNU Make version 3.58.
  158. include .depend
  159.  
  160. # File dependencies will be appended after this line by "make depend"
  161.